<?php include_once "config/config.php"; session_start();
    $id = $_SESSION['pajegos'];
    mysql_query("DELETE FROM vartotojai WHERE id ='$id'");
    mysql_query("DELETE FROM saskaitos WHERE VartotojaiId ='$id'");
    mysql_query("DELETE FROM sutartys WHERE VartotojaiId='$id'");
    mysql_query("DELETE FROM vartotojuroles WHERE VartotojaiId ='$id'");
    mysql_query("DELETE FROM inestipinigai WHERE VartotojaiID ='$id'");
    
    header('Location: userpage.php');
?>